package study.spring.transaction;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TranscationMain {
	public static void main(String[] args) throws Exception {
		ApplicationContext context = new ClassPathXmlApplicationContext("spring.xml",
				TranscationMain.class);
		JdbcService jdbcService;
		// jdbcService = (JdbcService)
		// context.getBean("jdbcServiceTransationTemplate");
		jdbcService = (JdbcService) context.getBean("jdbcServiceTransactionManager");
		EditLink t = new EditLink();
		// t.setName("");
		jdbcService.insert(t);
	}
}
